package auto.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨森
 * @since 2022-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Menus implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "menus_id", type = IdType.AUTO)
    private Integer menusId;
    /**
     * 菜单名称
     */
    private String menusName;

    /**
     * 菜单图标
     */
    private String menusIcon;

    /**
     * 菜单路由
     */
    private String menusRouter;

    /**
     * 父级id
     */
    private Integer menusParentid;

    /**
     * 节点类型
     */
    private Integer menusType;

    @TableField("Is_Deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 是否还有层级
     */
    @TableField(exist = false)
    private List<Menus> children;

}
